export default {
  inserted: (e, option) => {
    // 头像处理,有的话就用有的,不行就用传过来的,还没有就用自己定义的
    e.src = e.src || option.value || require('@/assets/common/123123.png')
    // 有头像但是报错处理
    e.addEventListener('error', () => {
      e.src = option.value || require('@/assets/common/123123.png')
    })
  },
  componentUpdated(el, option) {
    el.src = el.src || option.value || require('@/assets/common/123123.png')
  }
}
